// A simple class using a default constructor
// Date 20:20 31/10/2016
// By Ben a.k.a DreamVB

#include <iostream>

using namespace std;
using std::cout;
using std::endl;

class CBox{
	public:
		double m_length = 0;
		double m_width = 0;
		double m_height = 0;

		//Default constructor
		CBox(){
			m_width = m_height = m_length = 2.5;
		}

		CBox(double length, double width, double height){
			m_length = length;
			m_width = width;
			m_height = height;
		}
		double Volume(){
			return m_length*m_width*m_height;
		}
};

int main(int argc, char *argv[]){
	CBox box(20, 20, 20);
	CBox box2;

	cout << "box" << endl;
	cout << "Length : " << box.m_length << endl;
	cout << "Width  : " << box.m_width << endl;
	cout << "Height : " << box.m_height << endl;
	cout << "Volume : " << box.Volume() << endl;


	//box2 using default constructor
	cout << endl << "box2" << endl;
	cout << "Length : " << box2.m_length << endl;
	cout << "Width  : " << box2.m_width << endl;
	cout << "Height : " << box2.m_height << endl;
	cout << "Volume : " << box2.Volume() << endl;

	system("pause");
	return 0;
}
